package com.haoyeteng.sxbd.modular.business.warpper;


import java.util.Date;
import java.util.List;
import java.util.Map;

import com.haoyeteng.sxbd.core.base.warpper.BaseControllerWarpper;
import com.haoyeteng.sxbd.core.common.constant.factory.ConstantFactory;
import com.haoyeteng.sxbd.core.util.ToolUtil;


/**
 * 用户管理的包装类
 *
 * @author zhanglixiang
 * @date 2017年2月13日 下午10:47:03
 */
public class AccountWarpper extends BaseControllerWarpper {

    public AccountWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("applyStateName", ConstantFactory.me().getApplyStateName((Integer)map.get("applyState")));
        map.put("bindingStateName", ConstantFactory.me().getBindingStateName((Integer)map.get("bindingState")));
        map.put("payTimeName", ConstantFactory.me().getPayTimeName((Integer)map.get("payTime")));
        map.put("surplusTimeName", ConstantFactory.me().getSurplusTimeName((Integer)map.get("payTime"), (Date)map.get("startTime")));
    }

}
